package com.freemalll.auth.cloud.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freemalll.auth.cloud.business.domain.dto.SysApplicationDto;
import com.freemalll.auth.cloud.business.domain.entity.SysApplication;
import com.freemalll.auth.cloud.business.domain.vo.SysApplicationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统应用 数据层
 *
 * @author freemalll
 */
@Mapper
public interface SysApplicationMapper extends BaseMapper<SysApplication> {

    /**
     * 分页
     *
     * @param page
     * @param dto
     * @return
     */
    Page<SysApplicationVo> queryPage(Page page, @Param("dto") SysApplicationDto dto);

    /**
     * 列表
     *
     * @param dto
     * @return
     */
    List<SysApplicationVo> queryList(@Param("dto") SysApplicationDto dto);
}
